export let setItem = (key,data)=> {
	return new Promise((resolve,reject)=>{
		uni.setStorage({
			key:key ,
			data:data,
			success(res) {
				resolve(res)
			},
			fail() {
				reject({code:404})
			}
		})
	})
} 
export let getItem = (key)=> {
	return new Promise((resolve,reject)=>{
		uni.getStorage({
			key:key ,
			success(res) {
				resolve(res.data);
			},
			fail() {
				reject({code:404})
			}
		})
	})
} 
export let removeItem = (key,value)=> {
	return new Promise((resolve,reject)=>{
		uni.removeStorage({
			key:key,
			success(res) {
				resolve(res)
			},
			fail() {
				reject({code:404})
			}
		})
	})
} 